Optimal. Leaf size=103 \[ -\frac {2 a^2 (3 B+i A) (c-i c \tan (e+f x))^{3/2}}{3 c f}+\frac {4 a^2 (B+i A) \sqrt {c-i c \tan (e+f x)}}{f}+\frac {2 a^2 B (c-i c \tan (e+f x))^{5/2}}{5 c^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.047, Rules used = {3588, 77} \[ -\frac {2 a^2 (3 B+i A) (c-i c \tan (e+f x))^{3/2}}{3 c f}+\frac {4 a^2 (B+i A) \sqrt {c-i c \tan (e+f x)}}{f}+\frac {2 a^2 B (c-i c \tan (e+f x))^{5/2}}{5 c^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 3588
Rubi steps
\begin {align*} \int (a+i a \tan (e+f x))^2 (A+B \tan (e+f x)) \sqrt {c-i c \tan (e+f x)} \, dx &=\frac {(a c) \operatorname {Subst}\left (\int \frac {(a+i a x) (A+B x)}{\sqrt {c-i c x}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {(a c) \operatorname {Subst}\left (\int \left (\frac {2 a (A-i B)}{\sqrt {c-i c x}}-\frac {a (A-3 i B) \sqrt {c-i c x}}{c}-\frac {i a B (c-i c x)^{3/2}}{c^2}\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {4 a^2 (i A+B) \sqrt {c-i c \tan (e+f x)}}{f}-\frac {2 a^2 (i A+3 B) (c-i c \tan (e+f x))^{3/2}}{3 c f}+\frac {2 a^2 B (c-i c \tan (e+f x))^{5/2}}{5 c^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.96, size = 83, normalized size = 0.81 \[ \frac {a^2 \sec ^2(e+f x) \sqrt {c-i c \tan (e+f x)} ((-5 A+9 i B) \sin (2 (e+f x))+(21 B+25 i A) \cos (2 (e+f x))+5 (3 B+5 i A))}{15 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.49, size = 101, normalized size = 0.98 \[ \frac {\sqrt {2} {\left ({\left (60 i \, A + 60 \, B\right )} a^{2} e^{\left (4 i \, f x + 4 i \, e\right )} + {\left (100 i \, A + 60 \, B\right )} a^{2} e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (40 i \, A + 24 \, B\right )} a^{2}\right )} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{15 \, {\left (f e^{\left (4 i \, f x + 4 i \, e\right )} + 2 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.27, size = 83, normalized size = 0.81 \[ -\frac {2 i a^{2} \left (\frac {i B \left (c -i c \tan \left (f x +e \right )\right )^{\frac {5}{2}}}{5}+\frac {\left (-3 i B c +c A \right ) \left (c -i c \tan \left (f x +e \right )\right )^{\frac {3}{2}}}{3}-2 \left (-i B c +c A \right ) c \sqrt {c -i c \tan \left (f x +e \right )}\right )}{f \,c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 78, normalized size = 0.76 \[ -\frac {2 i \, {\left (3 i \, {\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{\frac {5}{2}} B a^{2} + 5 \, {\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{\frac {3}{2}} {\left (A - 3 i \, B\right )} a^{2} c - 30 \, \sqrt {-i \, c \tan \left (f x + e\right ) + c} {\left (A - i \, B\right )} a^{2} c^{2}\right )}}{15 \, c^{2} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.99, size = 241, normalized size = 2.34 \[ \frac {2\,a^2\,\sqrt {\frac {c\,\left (\cos \left (2\,e+2\,f\,x\right )+1-\sin \left (2\,e+2\,f\,x\right )\,1{}\mathrm {i}\right )}{\cos \left (2\,e+2\,f\,x\right )+1}}\,\left (A\,250{}\mathrm {i}+174\,B+A\,\cos \left (2\,e+2\,f\,x\right )\,375{}\mathrm {i}+A\,\cos \left (4\,e+4\,f\,x\right )\,150{}\mathrm {i}+A\,\cos \left (6\,e+6\,f\,x\right )\,25{}\mathrm {i}+267\,B\,\cos \left (2\,e+2\,f\,x\right )+114\,B\,\cos \left (4\,e+4\,f\,x\right )+21\,B\,\cos \left (6\,e+6\,f\,x\right )-25\,A\,\sin \left (2\,e+2\,f\,x\right )-20\,A\,\sin \left (4\,e+4\,f\,x\right )-5\,A\,\sin \left (6\,e+6\,f\,x\right )+B\,\sin \left (2\,e+2\,f\,x\right )\,45{}\mathrm {i}+B\,\sin \left (4\,e+4\,f\,x\right )\,36{}\mathrm {i}+B\,\sin \left (6\,e+6\,f\,x\right )\,9{}\mathrm {i}\right )}{15\,f\,\left (15\,\cos \left (2\,e+2\,f\,x\right )+6\,\cos \left (4\,e+4\,f\,x\right )+\cos \left (6\,e+6\,f\,x\right )+10\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - a^{2} \left (\int \left (- A \sqrt {- i c \tan {\left (e + f x \right )} + c}\right )\, dx + \int A \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{2}{\left (e + f x \right )}\, dx + \int \left (- B \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan {\left (e + f x \right )}\right )\, dx + \int B \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{3}{\left (e + f x \right )}\, dx + \int \left (- 2 i A \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan {\left (e + f x \right )}\right )\, dx + \int \left (- 2 i B \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{2}{\left (e + f x \right )}\right )\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________